package org.codefinger.dao.impl;

import java.util.BitSet;

import org.codefinger.dao.antlr.v4.runtime.ANTLRErrorListener;
import org.codefinger.dao.antlr.v4.runtime.Parser;
import org.codefinger.dao.antlr.v4.runtime.RecognitionException;
import org.codefinger.dao.antlr.v4.runtime.Recognizer;
import org.codefinger.dao.antlr.v4.runtime.atn.ATNConfigSet;
import org.codefinger.dao.antlr.v4.runtime.dfa.DFA;
import org.codefinger.dao.util.Lang;

public class QueryParserErrorListener implements ANTLRErrorListener {

	@Override
	public void syntaxError(Recognizer<?, ?> recognizer,
			Object offendingSymbol, int line, int charPositionInLine,
			String msg, RecognitionException e) {
		throw Lang.wrapThrow(e, msg);
	}

	@Override
	public void reportAmbiguity(Parser recognizer, DFA dfa, int startIndex,
			int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) {

	}

	@Override
	public void reportAttemptingFullContext(Parser recognizer, DFA dfa,
			int startIndex, int stopIndex, BitSet conflictingAlts,
			ATNConfigSet configs) {

	}

	@Override
	public void reportContextSensitivity(Parser recognizer, DFA dfa,
			int startIndex, int stopIndex, int prediction, ATNConfigSet configs) {

	}

}
